Telegram Group & Telegram Channel
29. Number pattern 4.

1
12
123
1234
12345
1234
123
12
1


class NumberPat4
{

public static void main(String arg[])
{

int ck = 0, c = 2;

while (c > 0)
{

if (ck == 0)
{

for (int i = 1; i <= 5; i++)
{

for (int j = 1; j <= i; j++)
{

System.out.print(j);

}

System.out.println();

}

ck++;

}
else
{

for (int i = 1, r = 5 - 1; i <= 5 - 1; i++, r--)
{

for (int j = 1; j <= r; j++)
{

System.out.print(j);

}

System.out.println();
}
}

c--;
}

}
}

@java_codings



tg-me.com/java_codings/41
Create:
Last Update:

29. Number pattern 4.

1
12
123
1234
12345
1234
123
12
1


class NumberPat4
{

public static void main(String arg[])
{

int ck = 0, c = 2;

while (c > 0)
{

if (ck == 0)
{

for (int i = 1; i <= 5; i++)
{

for (int j = 1; j <= i; j++)
{

System.out.print(j);

}

System.out.println();

}

ck++;

}
else
{

for (int i = 1, r = 5 - 1; i <= 5 - 1; i++, r--)
{

for (int j = 1; j <= r; j++)
{

System.out.print(j);

}

System.out.println();
}
}

c--;
}

}
}

@java_codings

BY Advance Java πŸ‘¨β€πŸ’»


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/java_codings/41

View MORE
Open in Telegram


Advance Java ‍ Telegram | DID YOU KNOW?

Date: |

Should I buy bitcoin?

β€œTo the extent it is used I fear it’s often for illicit finance. It’s an extremely inefficient way of conducting transactions, and the amount of energy that’s consumed in processing those transactions is staggering,” the former Fed chairwoman said. Yellen’s comments have been cited as a reason for bitcoin’s recent losses. However, Yellen’s assessment of bitcoin as a inefficient medium of exchange is an important point and one that has already been raised in the past by bitcoin bulls. Using a volatile asset in exchange for goods and services makes little sense if the asset can tumble 10% in a day, or surge 80% over the course of a two months as bitcoin has done in 2021, critics argue. To put a finer point on it, over the past 12 months bitcoin has registered 8 corrections, defined as a decline from a recent peak of at least 10% but not more than 20%, and two bear markets, which are defined as falls of 20% or more, according to Dow Jones Market Data.

The seemingly negative pandemic effects and resource/product shortages are encouraging and allowing organizations to innovate and change.The news of cash-rich organizations getting ready for the post-Covid growth economy is a sign of more than capital spending plans. Cash provides a cushion for risk-taking and a tool for growth.

Advance Java ‍ from ye


Telegram Advance Java πŸ‘¨β€πŸ’»
FROM USA